import { Tools } from "../system/Tools";
import { GameScene } from "./GameScene";

export const Config = {
  loader: Tools.massiveRequire(require["context"]('../../../../../../../public/img/sprites/', true, /\.(mp3|png|jpe?g)$/)),
  bgSpeed: 3,
  score: {
    x: 10,
    y: 10,
    anchor: 0,
    style: {
      fontFamily: "Verdana",
      fontWeight: "bold",
      fontSize: 44,
      fill: ["#FF7F50"]
    }
  },
  timer: {
    x: (window.innerWidth / 2 - 150) / 2,
    y: 30,
    width: 150,
    height: 40,
    anchor: 0,
    style: {
      fontFamily: "Changan Uni",
      fontWeight: "bold",
      fontSize: 16,
      fill: ["#fff"]
    }
  },
  diamonds: {
    chance: 0.4,
    offset: {
      min: 100,
      max: 200
    }
  },
  platforms: {
    moveSpeed: -1.5,
    ranges: {
      rows: {
        min: 2,
        max: 6
      },
      cols: {
        min: 3,
        max: 9
      },
      offset: {
        min: 60,
        max: 200
      }
    }
  },
  basket: {
    group: {
      width: 92,
      height: 150,
    },
    board: {
      width: 12,
      height: 150,
    },
    net: {},
    rim: {
      width: 80,
      height: 22,
      r: 10
    },
    jumpSpeed: 15,
    maxJumps: 2,
    width: 100,
    height: 50,
    position: {
      x: 350,
      y: 595
    }
  },
  ball: {
    position: {
      x: 350,
      y: 595
    },
    r: 25,
    diameter: 50,
  },
  hero: {
    jumpSpeed: 15,
    maxJumps: 2,
    width: 50,
    height: 50,
    position: {
      x: 250,
      y: 750
    }
  },
  scenes: {
    "Game": GameScene
  }
};